package com.jic.product.mapper;

import java.lang.Long;
import java.util.List;

import com.jic.product.entity.CategoryPropertyName;
import com.jic.product.manage.response.CategoryPropertyNameResponse;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 类目属性名
 *
 * @author :
 * @version : v1.0.0
 * @email :
 * @since : 2020-01-10 07:03:01
 */
@Mapper
public interface CategoryPropertyNameMapper {

    long insert(CategoryPropertyName categoryPropertyName);

    long delete(Long id);

    long update(CategoryPropertyName categoryPropertyName);

    CategoryPropertyName queryByPrimaryKey(Long id);

    List<CategoryPropertyName> query(CategoryPropertyName categoryPropertyName);

    List<CategoryPropertyName> queryPage(@Param("startIndex") int startIndex, @Param("limit") int limit, CategoryPropertyName categoryPropertyName);

    long queryPageCount(CategoryPropertyName categoryPropertyName);

    //通过属性值id查询
    List<CategoryPropertyName> queryByPropertyNameId(@Param("propertyId") Long propertyId);

    //查询属性名
    List<CategoryPropertyNameResponse> getCategoryPropertyNameList(CategoryPropertyName categoryPropertyName);
}